Your Code as a Crime Scene, Second Edition by Adam Tornhill
Author:Adam Tornhill
Language: eng
Format: epub
Tags: Pragmatic Bookshelf
Publisher: The Pragmatic Bookshelf, LLC
Use Beauty in Code
Beauty, being the absence of ugliness, translates well to our software world, too. Beautiful code has a consistent level of expression thatâs easy to follow. Just as deviations from the mathematical average make a face less attractive, so does any coding construct that deviates from the main style of your application or introduces accidental barriers to understanding the code. Examples of such issues include special cases and the code smells covered in Chapter 6, âRemediate Complicated Codeâ.
These constructs signal bad genes in our programs because they make it harder to form a mental model of the program. Thatâs just how your brain works; when presented with complexity, inconsistencies, or conflicting representations, your brain selects one of the stimuli at the price of other details. You can switch between them, but it will be mentally expensive.
That means youâve introduced a cognitive cost as soon as you break the flow of someone reading your code. This cost makes your programs harder to understand and riskier to modify. A broken code reading flow is to blame for many bugs.
Beauty Influences Sentencing
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(20604)
Hello! Python by Anthony Briggs(19900)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(18208)
Dependency Injection in .NET by Mark Seemann(18109)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(17576)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(17422)
Kotlin in Action by Dmitry Jemerov(17185)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(16934)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(16237)
Grails in Action by Glen Smith Peter Ledbrook(15390)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(13266)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(11382)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10581)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(10393)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(9389)
Hit Refresh by Satya Nadella(9085)
The Kubernetes Operator Framework Book by Michael Dame(8522)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8348)
Robo-Advisor with Python by Aki Ranin(8295)